package com.jungle.mvvm.sample.ui.coin;

import com.jungle.mvvm.sample.api.OtherApi;
import com.jungle.mvvm.sample.bean.CoinBean;
import com.jungle.mvvm.sample.bean.ListBean;
import com.jungle.mvvm.sample.http.WanNetwork;

import java.util.List;

import io.reactivex.Observable;

/**
 * @ClassName CollectModel
 * @Description CoinModel
 * @Author Daniel
 * @Version V1.0.0
 */
public class CoinModel {

    public static Observable<ListBean<List<CoinBean>>> getCoinList(int size){
        return WanNetwork.getService(OtherApi.class)
                .getCoinList(size);
    }
}
